#ifndef BLACK_HOLE_H
#define BLACK_HOLE_H

#include "NxOgre.h"
#include "NxActor.h"

class BlackHole: public NxOgre::Callback
{
public:
	static const float RADIUS_FACTOR;

	BlackHole(float _radius, NxOgre::Vec3 _startPosition);
	~BlackHole();

	NxOgre::Volume* getTrigger() const;
	float getRadius() const;

	void onVolumeEvent(NxOgre::Volume* _volume, NxOgre::Shape* _volumeShape, NxOgre::RigidBody* _rigidBody, 
                            NxOgre::Shape* _rigidBodyShape, unsigned int _collisionEvent);
private:
	NxOgre::Volume* trigger;
	float radius;
	double lastLength;
};

#endif